﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KZ.Lottery.DAL;

namespace KZ.Lottery
{
    public partial class FrmGroupHighestDay : Form
    {
        public FrmGroupHighestDay()
        {
            InitializeComponent();
            colStartDate.DefaultCellStyle.Format = Global.Culture.DateTimeFormat.ShortDatePattern;
            colEndDate.DefaultCellStyle.Format = Global.Culture.DateTimeFormat.ShortDatePattern;
        }

        private void FrmGroupHighestDay_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        private void LoadData()
        {
            int status = rdbNotYet.Checked ? 0 : rdbIsDone.Checked ? 0 : 2;
            bdsGroupHighestDay.DataSource = GroupHighestDayDAL.GetGroupHighestDay(status);
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            LoadData();
        }
    }
}
